import { defineStore } from 'pinia';
import { IUserOptionVO, allUserList } from '@/api/admin/user';

export const useSelectOptionsStore = defineStore('selectOptions', () => {
	const userOptions = ref<IUserOptionVO[]>([]);

	async function fetchUserOptions() {
		const res = await allUserList('');
		userOptions.value = res.data;
	}

	return {
		userOptions,
		fetchUserOptions,
	};
});
